package page;

/**
 * Created by as on 2016/11/16.
 */
public class ObjectEx {
    public static void main(String[] args){
        Book1 book1 = new Book1();
        ComBook1 comBook1 = new ComBook1();
        System.out.println(book1);
        System.out.println(comBook1);

        Object[] obj = new Object[2];
        obj[0] = book1;
        obj[1] = comBook1;

        for (Object o : obj)
        {
            System.out.println(o);
        }

    }
}
